/*
 * @Author: wu07 1732042133@qq.com
 * @Date: 2023-01-10 11:23:32
 * @LastEditors: wu07 1732042133@qq.com
 * @LastEditTime: 2023-02-02 14:24:38
 * @FilePath: \recruitAPP\recruitApp\recruitApp\src\router\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createRouter, createWebHashHistory } from "vue-router";
import Home from "~/views/Home.vue";
import NotFound from "~/views/Page404.vue";
import Login from "~/pages/login/Login.vue";
import Verify from "~/pages/login/Verify.vue";
import Revise from "~/pages/login/Revise.vue";
import Enroll from "~/pages/login/Enroll.vue";
import Protocol from "~/pages/login/Protocol.vue";
import Start from "~/pages/login/Start.vue";
import User from "~/pages/user/User.vue";
import Me from "~/pages/user/Me/Me.vue";
import Information from "~/pages/user/Me/Information.vue";
import Resume from "~/pages/user/Me/Resume.vue";
import Intent from "~/pages/user/Me/Intent.vue";
import Experience from "~/pages/user/Me/Experience.vue";
import Degree from "~/pages/user/Me/Degree.vue";
import Opinion from "~/pages/user/Me/Opinion.vue";
import Add from "~/pages/user/Me/Add.vue";
import Feedback from "~/pages/user/Me/Feedback.vue";
import Posts from "~/pages/user/Posts.vue";
import Request from "~/pages/user/Request.vue";
import Personnel from "~/pages/enterprise/Personnel.vue";
import Tabber from "~/pages/enterprise/Tabber.vue";
import Recruit from "~/pages/enterprise/Recruit.vue";
import Apply from "~/pages/enterprise/Apply.vue";
import Me2 from "~/pages/enterprise/ME/Me2.vue";
import Information2 from "~/pages/enterprise/ME/Information2.vue";
import Opinion2 from "~/pages/enterprise/ME/Opinion2.vue";
import Details from "~/pages/enterprise/Details.vue";
const routes = [
    {
        path: "/",
        redirect: "/login"
    },
    {
        path: "/login",
        name: "Login",
        component: Login,
    },
    {
        path: "/enroll",
        name: "Enroll",
        component: Enroll,
    },
    {
        path: "/home",
        name: "Home",
        component: Home
    },
    {
        path: '/:pathMatch(.*)*',
        name: 'NotFound',
        component: NotFound
    },
    {
        path: "/verify",
        name: "Verify",
        component: Verify,
    },
    {
        path: "/revise",
        name: "Revise",
        component: Revise,
    },
    {
        path: "/protocol",
        name: "Protocol",
        component: Protocol,
    },
    {
        path: "/start",
        name: "Start",
        component: Start,
    },
    {
        path: "/user",
        name: "User",
        redirect: "/posts",
        component: User,
        children: [
            {
                path: "/Me/me",
                name: "Me",
                component: Me,
            },
            {
                path: "/posts",
                name: "Posts",
                component: Posts,
            },
            {
                path: "/request",
                name: "Request",
                component: Request,
            },
        ]
    },
    {

        path: "/information",
        name: "Information",
        component: Information,
    },
    {
        path: "/resume",
        name: "Resume",
        component: Resume,
    },
    {
        path: "/intent",
        name: "Intent",
        component: Intent,
    },
    {
        path: "/experience",
        name: "Experience",
        component: Experience,
    },
    {
        path: "/degree",
        name: "Degree",
        component: Degree,
    },
    {
        path: "/opinion",
        name: "Opinion",
        component: Opinion,
    },
    {
        path: "/add",
        name: "Add",
        component: Add,
    },
    {
        path: "/feedback",
        name: "Feedback",
        component: Feedback,
    },
    {
        path: "/tabber",
        name: "Tabber",
        redirect: "/personnel",
        component: Tabber,
        children: [
            {
                path: "/ME/Me2",
                name: "Me2",
                component: Me2,
            },
            {
                path: "/personnel",
                name: "Personnel",
                component: Personnel,
            },
            {
                path: "/recruit",
                name: "Recruit",
                component: Recruit,
            }, {
                path: "/apply",
                name: "Apply",
                component: Apply,
            }]
    },
    {
        path: "/information2",
        name: "Information2",
        component: Information2,
    },
    {
        path: "/opinion2",
        name: "Opinion2",
        component: Opinion2,
    },
    {
        path: "/details",
        name: "Details",
        component: Details,
    }

];
// 3.路由对象实例化
const router = createRouter({
    history: createWebHashHistory(),
    routes
});
// 暴露导出
export default router;